package c.e.a.a.f.p;

import c.e.a.a.f.e;
import c.e.a.a.f.h;
import c.e.a.a.f.n.m;
import java.util.logging.Logger;

/* compiled from: DefaultScheduler */
public final /* synthetic */ class a implements Runnable {
    public final c a;
    public final h b;
    public final c.e.b.h.e.r.a c;
    public final e d;

    public a(c cVar, h hVar, c.e.b.h.e.r.a aVar, e eVar) {
        this.a = cVar;
        this.b = hVar;
        this.c = aVar;
        this.d = eVar;
    }

    public void run() {
        c cVar = this.a;
        h hVar = this.b;
        c.e.b.h.e.r.a aVar = this.c;
        e eVar = this.d;
        Logger logger = c.f;
        try {
            m a = cVar.c.a(hVar.b());
            if (a == null) {
                String format = String.format("Transport backend '%s' is not registered", new Object[]{hVar.b()});
                c.f.warning(format);
                aVar.a(new IllegalArgumentException(format));
                return;
            }
            cVar.e.a(new b(cVar, hVar, a.a(eVar)));
            aVar.a(null);
        } catch (Exception e) {
            Logger logger2 = c.f;
            StringBuilder g = c.b.a.a.a.g("Error scheduling event ");
            g.append(e.getMessage());
            logger2.warning(g.toString());
            aVar.a(e);
        }
    }
}
